package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 佘赛飞
 * @create 2021-11-18 11:11 上午
 */
@Controller
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/findOne")
    public ModelAndView findOnefile(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","我的第一个findOnefile");
        modelAndView.setViewName("success");
        return modelAndView;
    }

    @RequestMapping("/first")
    public ModelAndView first(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","我的fist方法进入了");
        modelAndView.setViewName("success");
        return modelAndView;
    }
}
